home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Development Tools & Languages / Dylan Related / Mindy-1.1 (sources only) / mindy-1.1 / demos / hello-world / hello-world.dylan < prev   
Encoding:
Text File  |  1994-06-29  |  1.6 KB  |  40 lines  |  [TEXT/ttxt]

  1. module: Dylan-User
  2. rcs-header: $Header: hello-world.dylan,v 1.1 94/06/29 00:04:19 wlott Exp $
  3.  
  4. //======================================================================
  5. //
  6. // Copyright (c) 1994  Carnegie Mellon University
  7. // All rights reserved.
  8. // 
  9. // Use and copying of this software and preparation of derivative
  10. // works based on this software are permitted, including commercial
  11. // use, provided that the following conditions are observed:
  12. // 
  13. // 1. This copyright notice must be retained in full on any copies
  14. //    and on appropriate parts of any derivative works.
  15. // 2. Documentation (paper or online) accompanying any system that
  16. //    incorporates this software, or any part of it, must acknowledge
  17. //    the contribution of the Gwydion Project at Carnegie Mellon
  18. //    University.
  19. // 
  20. // This software is made available "as is".  Neither the authors nor
  21. // Carnegie Mellon University make any warranty about the software,
  22. // its performance, or its conformity to any specification.
  23. // 
  24. // Bug reports, questions, comments, and suggestions should be sent by
  25. // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  26. //
  27. //======================================================================
  28. //
  29. // This is the canonical ``hello, world'' demo.
  30. //
  31. // Mindy invokes the generic function main with the command line arguments
  32. // as strings.  Given that we don't care what they are, we just ignore them.
  33. //
  34. // We just put this in the Dylan-User module, because there is no reason to
  35. // define out own module when the Dylan-User module is good enough.
  36.  
  37. define method main (#rest noise)
  38.   puts("Hello, World.\n");
  39. end;
  40.